package com.youhome.service.service.impl;

import com.youhome.service.mapper.*;
import com.youhome.service.model.*;
import com.youhome.service.service.HouseCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chen365 on 2018/05/29.
 */
@Service
public class HouseCommonServiceImpl implements HouseCommonService {

    @Autowired
    private HouseStyleMapper houseStyleMapper;

    @Autowired
    private HouseTypeMapper houseTypeMapper;

    @Autowired
    private HousePropertySubTypeMapper housePropertySubTypeMapper;

    @Autowired
    private HousePropertyTypeMapper housePropertyTypeMapper;

    @Autowired
    private StateMapper stateMapper;

    @Override
    public List<HouseType> selectHouseTypeAll() {
        return houseTypeMapper.selectAll();
    }

    @Override
    public List<HouseStyle> selectHouseStyleAll() {
        return houseStyleMapper.selectAll();
    }

    @Override
    public List<HousePropertyType> selectHousePropertyTypeAll() {
        return housePropertyTypeMapper.selectAll();
    }

    @Override
    public List<HousePropertySubType> selectHousePropertySubTypeAll() {
        return housePropertySubTypeMapper.selectAll();
    }

    @Override
    public List<State> selectStateAll() {
        return stateMapper.selectAll();
    }
}
